<?php


namespace App\Http\Controllers\Frontend\Course;


use App\Http\Service\frontend\CourseService;
use App\Http\Controllers\Frontend\ApiController;

class IndexController extends ApiController
{
    private $courseService;

    public function __construct(CourseService $courseService)
    {
        $this->courseService = $courseService;
    }

    public function index()
    {
        return $this->success($this->courseService->index());
    }
}
